import config from '@/utils/config'
import { generateRequest } from '@/utils/request'
const { apiUrlPrefix } = config

/** 陪护内容列表 */
export const companionContentListApi = generateRequest(`${apiUrlPrefix}/pcs/companionContent/list`)

/** 新增陪护内容 */
export const createCompanionContentApi = generateRequest(`${apiUrlPrefix}/pcs/companionContent`)

/** 陪护内容修改 */
export const updateCompanionContentApi = generateRequest(`${apiUrlPrefix}/pcs/companionContent/{id}`, 'put')

/** 陪护内容删除 */
export const deleteCompanionContentApi = generateRequest(`${apiUrlPrefix}/pcs/companionContent/{id}`, 'delete')

/** 陪护内容详情 */
export const getCompanionContentApi = generateRequest(`${apiUrlPrefix}/pcs/companionContent/{id}`, 'get')

/** 陪护内容选项列表 */
export const companionContentOptionsListApi = generateRequest(`${apiUrlPrefix}/pcs/companionContent/contentOptions`)

/** 陪护内容 - 启用-停用 */
export const enableCompanionContentApi = generateRequest(`${apiUrlPrefix}/pcs/companionContent/{id}/{enable}`, 'put')
